/* 全局样式，补充主App.vue中缺少的样式 */

.section-title {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #2c3e50;
  padding-bottom: 12px;
  border-bottom: 3px solid #4b6cb7;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff6b6b;
}

.upload-section {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: #f0f4f8;
  border-right: 1px solid #d1dfff;
}

.dictation-section {
  flex: 2;
  min-width: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: #fafbff;
}

.settings-section {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: #f0f4f8;
  border-left: 1px solid #d1dfff;
}

.upload-area {
  border: 3px dashed #4b6cb7;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  margin-bottom: 25px;
  background: white;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: inset 0 0 10px rgba(75, 108, 183, 0.1);
}

.upload-area:hover {
  background: #e3f2fd;
  transform: translateY(-3px);
  box-shadow: inset 0 0 15px rgba(75, 108, 183, 0.2), 0 5px 15px rgba(0,0,0,0.1);
}

.upload-icon {
  font-size: 3.5em;
  color: #4b6cb7;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.file-inputs {
  margin: 20px 0;
}

.file-input {
  margin: 15px 0;
}

.file-input input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin: 8px 0;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.file-input label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c3e50;
}

/* Button styles */
.btn {
  background: linear-gradient(to bottom, #4b6cb7, #3a5795);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.3s;
  margin: 8px;
  box-shadow: 0 5px 15px rgba(75, 108, 183, 0.4);
  border: 2px solid #2a4a85;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(75, 108, 183, 0.6);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(75, 108, 183, 0.4);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(75, 108, 183, 0.3);
}

.btn-secondary {
  background: linear-gradient(to bottom, #6c757d, #5a6268);
  border: 2px solid #495057;
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-success {
  background: linear-gradient(to bottom, #28a745, #218838);
  border: 2px solid #1e7e34;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-warning {
  background: linear-gradient(to bottom, #ffc107, #e0a800);
  color: #212529;
  border: 2px solid #d39e00;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-danger {
  background: linear-gradient(to bottom, #dc3545, #c82333);
  border: 2px solid #bd2130;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-info {
  background: linear-gradient(to bottom, #17a2b8, #138496);
  border: 2px solid #117a8b;
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.btn-lg {
  padding: 16px 35px;
  font-size: 1.2em;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95em;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Control buttons styling */
.control-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.2s;
  border: 3px solid white;
  background: linear-gradient(to bottom, #4b6cb7, #3a5795);
  color: white;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", EmojiSymbols, sans-serif;
}

.control-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.control-btn:active {
  transform: scale(0.95);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.word-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  padding: 30px;
  background: #f8f9ff;
  border-radius: 20px;
  box-shadow: inset 0 0 15px rgba(75, 108, 183, 0.1), 0 5px 15px rgba(0,0,0,0.05);
  border: 2px solid #e1e8ff;
}

.word {
  font-size: 4.5em;
  font-weight: 800;
  color: #4b6cb7;
  margin-bottom: 25px;
  min-height: 1.3em;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
  font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
}

.meaning {
  font-size: 2em;
  color: #666;
  min-height: 1.3em;
  font-weight: 500;
  padding: 15px 25px;
  background: rgba(255,255,255,0.7);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 35px 0;
}

.progress-container {
  width: 100%;
  background: #e9ecef;
  border-radius: 15px;
  height: 25px;
  margin: 25px 0;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  border-radius: 15px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(75, 108, 183, 0.5);
}

.progress-text {
  text-align: center;
  font-weight: bold;
  margin-top: 12px;
  font-size: 1.1em;
  color: #2c3e50;
}

.setting-group {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border: 1px solid #e1e8ff;
}

.setting-group h3 {
  margin-top: 0;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.setting-item {
  margin: 18px 0;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.setting-item input, .setting-item select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s;
}

.setting-item input:focus, .setting-item select:focus {
  border-color: #4b6cb7;
  box-shadow: 0 0 8px rgba(75, 108, 183, 0.3);
}

.setting-item input[type="range"] {
  padding: 0;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.mode-toggle {
  display: flex;
  margin: 25px 0;
  background: #e9ecef;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.mode-btn {
  flex: 1;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 1.1em;
}

.mode-btn:hover {
  background-color: #d1d1d1;
}

.mode-btn.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: white;
  box-shadow: 0 3px 10px rgba(75, 108, 183, 0.3);
}

.mode-settings {
  display: none;
  animation: fadeIn 0.5s;
}

.mode-settings.active {
  display: block;
}

.help-text {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 20px;
  border-radius: 15px;
  margin: 25px 0;
  font-size: 1em;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border: 1px solid #bbdefb;
}

.help-text h4 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.3em;
}

.word-list {
  max-height: 220px;
  overflow-y: auto;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  background: white;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.word-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  transition: background 0.2s;
}

.word-item:hover {
  background: #f5f9ff;
}

.word-item:last-child {
  border-bottom: none;
}

.word-item .word-text {
  flex: 1;
  font-weight: 700;
  color: #4b6cb7;
}

.word-item .meaning-text {
  flex: 2;
  color: #666;
}

.file-type-selector {
  display: flex;
  margin: 20px 0;
  background: #e9ecef;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.file-type-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.file-type-btn:hover {
  background-color: #d1d1d1;
}

.file-type-btn.active {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: white;
  box-shadow: 0 3px 10px rgba(75, 108, 183, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .upload-section, .dictation-section, .settings-section {
    min-width: 100%;
  }
  .upload-section, .settings-section {
    border-right: none;
    border-left: none;
    border-top: 1px solid #d1dfff;
    border-bottom: 1px solid #d1dfff;
  }
  .word {
    font-size: 3em;
  }
  .meaning {
    font-size: 1.5em;
  }
  .control-btn {
    width: 70px;
    height: 70px;
    font-size: 1.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.2s;
    border: 3px solid white;
    background: linear-gradient(to bottom, #4b6cb7, #3a5795);
    color: white;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", EmojiSymbols, sans-serif;
  }
  h1 {
    font-size: 2.2em;
  }
}